<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .active{
            background-color: blueviolet;
        }
        .fz{
            font-size: 18px;
        }
        .cl{
            color: cyan;
        }
    </style>
</head>
<body>
    <div id="app">
        <div :class='{active:true,fz:true}'>你好啊啊啊啊啊啊</div>
        <div :class='["active","fz",{cl:true}]'>你好啊啊啊啊啊啊</div>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        const ve = new Vue({
            el: '#app',
            // data:{
            //     bgc:'active',
            //     fzs:'fz'
            // }
        })
    </script>
</body>
</html>